﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace JXC.Core.Models
{
    /// <summary>
    /// 角色菜单中间表
    /// </summary>
   public class RoleMenuInfos
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        //关系编号
        public int Id { get; set; }
        //角色编号
        [ForeignKey("RoleInfosId")]
        public int RoleId { get; set; }
        //菜单编号
        [ForeignKey("MenuInfosId")]
        public int MId { get; set; }
        //创建人
        public string Creator { get; set; }
        //创建时间
        public DateTime CreateTime { get; set; }

        public RoleInfos RoleInfos { get; set; }
        public MenuInfos MenuInfos { get; set; }
    }
}
